package com.atguigu02.method_lifecycle.exer;

/**
 * @author NoobMaster69  * @date 2024/6/12 0012 星期三 20:10
 */
public class Happy {
    public static void main(String[] args) {

        int ten = 11;
        for (int i = 1; i <= 11; i++) {

            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            if(i <= 10){
                System.out.println(ten - i);
            }else {
                System.out.println("新年快乐!");
            }
        }
    }
}
